'use strict';

const { Controller } = require('egg');

class HomeController extends Controller {
    async local() {
        const { ctx } = this;
        let res = await this.service.user.getUser()
        ctx.body = {
            code: 200,
            message: "success",
            data: res
        }
    }

    async oss() {
        const { ctx } = this;
        let res = await this.service.user.getUser()
        ctx.body = {
            code: 200,
            message: "success",
            data: res
        }
    }
}

module.exports = HomeController;
